import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-2*np.pi, 2*np.pi, 256)
y = np.tan(x)
plt.plot(x, y)
plt.show()